package org.uni_hi.lsep.gui;

import java.awt.Color;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;

import javax.swing.JEditorPane;
import javax.swing.JPanel;

public class TextPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	public TextPanel(){
		try {
			init();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	private void init() throws IOException{
		try {
			URI url=new URI("file:///G:/workspace/java/lsep/data/2.html");
			JEditorPane htmlText=new JEditorPane("text/html","");
			htmlText.setPage(url.toURL());
			htmlText.setSelectionColor(Color.WHITE);
			this.add(htmlText);
		} catch (URISyntaxException e) {
			e.printStackTrace();
		}
	}
}
